package com.crm.common.crm.entity.PO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill_crm_agreement")
@ApiModel(value="CrmAgreement对象", description="协议签署记录表")
public class CrmAgreement {

    @TableId(value = "agreement_id", type = IdType.AUTO)
    private Long  agreementId;

    @ApiModelProperty(value = "学员id")
    private Long customerId;

    @ApiModelProperty(value = "学员名称")
    private String customerName;

    @ApiModelProperty(value = "学员类型  学员  vip学员")
    private String customerType;

    @ApiModelProperty(value = "手机号")
    private String telephone;

    @ApiModelProperty(value = "模板id")
    private Long templateId;

    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @ApiModelProperty(value = "爱签合同编号")
    private String contractNo;

    @ApiModelProperty(value = "签署状态  未签署 已签署")
    private String signStatus;


    @ApiModelProperty(value = "签署时间")
    private Date signTime;

    @ApiModelProperty(value = "发起人id")
    private Long createUserId;

    @ApiModelProperty(value = "发起人所在部门id")
    private Long createUserDeptId;

    @ApiModelProperty(value = "销售负责人id")
    private Long agreementOwnerUserId;

    @ApiModelProperty(value = "负责人所在部门id")
    private Long agreementOwnerDeptId;

    @ApiModelProperty(value = "助教协作人id")
    private Long agreementAssistantUserId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @ApiModelProperty(value = "批次")
    private String batchId;

    @ApiModelProperty(value = "签署链接")
    private String signUrl;

    @ApiModelProperty(value = "签约人姓名")
    private String signUserName;

    @ApiModelProperty(value = "签署方式")
    private String signType;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

}
